<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
	<script type="text/javascript">


		/*alert("hello");
		
		function fun(){
			a = 10;
		}*/

		var obj = {

			sayHello: function () {
				//console.log(this);	
				function test() {
					console.log(this);
				}

				test();
			}

		};

		obj.sayHello();

		var fun = obj.sayHello;

			//fun();

	</script>
</head>

<body>

</body>

</html>